package cn.csust.net2.manager.shared.po;

import java.io.Serializable;
import java.util.Date;

import cn.csust.net2.manager.shared.vo.UserProperty;
import cn.csust.net2.manager.shared.xml.XmlInfo;
import cn.csust.net2.manager.shared.xml.XmlResources;

import com.extjs.gxt.ui.client.data.BeanModelTag;

public class Work extends PO implements Serializable,BeanModelTag, UserProperty {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3104422887892141654L;

	private Integer workID;
	private String workUnit;
	private String workPosition;
	private Date startDate;
	private Date endDate;
	private String grade;
	private String workDetails;
	private String remark;
	
	private User user;
	
	public Work() {
		
	}
	
	public Integer getWorkID() {
		return workID;
	}

	public void setWorkID(Integer workID) {
		this.workID = workID;
	}

	public String getWorkUnit() {
		return workUnit;
	}

	public void setWorkUnit(String workUnit) {
		this.workUnit = workUnit;
	}

	public String getWorkPosition() {
		return workPosition;
	}

	public void setWorkPosition(String workPosition) {
		this.workPosition = workPosition;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getWorkDetails() {
		return workDetails;
	}

	public void setWorkDetails(String workDetails) {
		this.workDetails = workDetails;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	@Override
	public XmlInfo getXmlInfo(XmlResources instance) {
		// TODO Auto-generated method stub
		XmlInfo xmlInfo = new XmlInfo();
		xmlInfo.setTextResource(instance.work());
		return xmlInfo;
	}

	@Override
	public String getDisplayName() {
		// TODO Auto-generated method stub
		return null;
	}

}
